package com.ponhu.ea2.goodsCenter.provider.config;

import com.ponhu.ea2.entity.Material;
import com.ponhu.ea2.vo.PhCategoryLevel3Vo;
import io.netty.util.concurrent.FastThreadLocal;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.List;

@Configuration
public class AppBeanConfig {

    @Bean
    public FastThreadLocal<String> traceIdLocal() {
        return new FastThreadLocal<>();
    }

    @Bean
    public FastThreadLocal<Boolean> subQueryEmptyLocal() {
        return new FastThreadLocal<>();
    }

    @Bean
    public FastThreadLocal<List<Material>> materialsLocal() {
        return new FastThreadLocal<>();
    }

    @Bean
    public FastThreadLocal<List<PhCategoryLevel3Vo>> categorysLocal() {
        return new FastThreadLocal<>();
    }

}
